-
Notifications
You must be signed in to change notification settings - Fork 4.2k
CPP Transformer Tutorial #1192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPP Transformer Tutorial #1192
Conversation
Deploy preview for pytorch-tutorials-preview failed. Built with commit 95e40d9 https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/5f9829016e3c1400073022b2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for contributing this tutorial. I have a nit comment at the end to avoid lint error. Will approve once this is corrected. Pleases rebase the code as well.
Not required for this PR. It would be great if you can write a .rst file to go over this example, since .rst file will be available on https://pytorch.org/tutorials/ as a text tutorial.
for example: https://github.com/pytorch/tutorials/blob/master/advanced_source/rpc_ddp_tutorial.rst
evaluate(model, std::get<1>(data)); | ||
|
||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please add a new line here to avoid lint error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have added the newline at the end
133fcf9
to
7ea25e0
Compare
Sure I will be raising a new PR for the .rst file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: xyli <32228059+glaringlee@users.noreply.github.com> Co-authored-by: Brian Johnson <brianjo@fb.com>
This is Transformer example using CPP frontend